<template>
	<view style="padding-top: 12.68rpx;">
		<view v-for="(itme,index) in yishanngjia_" :key="index" style="display: flex;margin: 0 0 12.68rpx 27.77rpx;background: #FFFFFF;border-radius: 24.15rpx;width: 694.6rpx;height: 193.28rpx;box-sizing: border-box;padding: 18.5rpx;" @tap.stop="tiaozhuan(itme)">
			<view>
				<image :src="itme.face_url" style="width: 154rpx;height: 154rpx;border-radius: 6.03rpx;"></image>
			</view>
			<view style="margin-left: 23.556rpx;">
				<view style="font-size: 26.58rpx;color: #414141;margin-top: 10rpx;">{{itme.title}}</view>
				<view style="font-size: 24.15rpx;color: #BEBEBE;margin: 20rpx 0 13rpx 0;">{{itme.label}}</view>
				<view style="display: flex;justify-content: space-between;width: 477rpx;">
					<view>
						<text style="font-size: 27.368rpx;color: #E4605A;font-weight: bold;">￥{{itme.map.priceList[0].price}}/节</text>
						<text style="font-size: 21.744rpx;color: #C7C7C7;margin-left: 18rpx;">￥{{itme.amout}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data(){
			return {
				mechanism_id:"",
				appointment_type:"",
				num:1,
				yishanngjia_:[],
				list:""
			}
		},
		methods:{
		async	qingqiu(){
			    let me = this
				const res = await me.$myRequest({
					url:"/masterSetPrice/queryCourseListPage",
					data:{
						mechanism_id:me.mechanism_id,
						appointment_type:me.appointment_type,
						type:"mechanism_offline",
						status:2,
						pageSize:10,
						currentPage:me.num
					}
				})
				if(res.code == 0){
					me.yishanngjia_ = res.data
				}
			},
			tiaozhuan(itme){
				let me = this
				let list = Object.assign(me.list,itme)
				uni.navigateTo({
					url:"/pages/World/moreCurious/moreCurious?num=" + encodeURIComponent(JSON.stringify(list))
				})
			}
		},
		onLoad(options) {
			let me = this
			const item = JSON.parse(decodeURIComponent(options.num));
			me.list = item
			if(item.yue_pai_lei == "老师安排"){
				me.appointment_type = "scheduling"
			}else{
				me.appointment_type = "appointment"
			}
			try{
				me.mechanism_id = uni.getStorageSync('userif_list').mechanism_id
			}catch(e){}
			me.qingqiu()
		},
		onShow() {
			
		}
	}
</script>